/*
* @Author: chenggh
* @Date: 2025-06-16
* @Link to Problem : https://www.luogu.com.cn/problem/P1541
*/
#include <iostream>
using namespace std;
int n, m;
int a[400] = {0};
int b[400] = {0};
int main(){
	cin >> n >> m;
	for(int i = 1; i <= n; i++){
		cin >> a[i];
	}
	for(int i = 1; i <= m; i++){
		cin >> b[i];
	}

	
	return 0;
}